<!--
 * @FilePath     : /study_code/layui/6-3-15.html
 * @Description  : layer.iframeAuto(index)
 * @Date         : 2025-04-08 17:33:58
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-09 08:46:53
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
  </head>
  <body>
    <script src="/layui/dist/layui.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/layui/2.8.17/layui.min.js"></script>
    <script>
      // 此 demo 需要运行根目录的 node 启的 web 服务器

      var index = layer.open({
        type: 2,
        content: '/layui/layer/6315/iframe.html',
        /**
         * @brief:
         * @param {*} layero 弹出层最外层容器的 DOM 对象
         * @param {*} index 当前层的索引
         * @return {*}
         */
        success: function (layero, index) {
          layer.iframeAuto(index)
        },
      })
    </script>
  </body>
</html>
